package com.core;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by wk on 14-10-26.
 */
public class ThreadPools {
  private static ExecutorService executorService = null;
  static{
      executorService = Executors.newFixedThreadPool(3);
  }
    private ThreadPools(){};
    public static void execute(Runnable ...runnables)
    {
        for (Runnable runnable:runnables)
            executorService.execute(runnable);
    }

}
